package com.samphanie.auiu.generator.config;

import com.samphanie.auiu.common.config.BaseSwaggerConfig;
import com.samphanie.auiu.common.properties.SwaggerProperties;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * @author ZSY
 * @email 1451691457@qq.com
 */
@Configuration
@EnableSwagger2
public class Swagger2Config extends BaseSwaggerConfig {
    /**
     * 自定义Swagger配置
     */
    @Override
    public SwaggerProperties swaggerProperties() {

        return SwaggerProperties.builder()
                .apiBasePackage("com.samphanie.auiu.geberator.controller")
                .title("AUIU-CLOUD代码生成器管理系统")
                .description("AUIU-CLOUD代码生成器相关接口文档")
                .contactName("auiu")
                .version("1.0")
                .enableSecurity(true)
                .build();
    }
}

